<?php 
/**
 * 企业资讯列表页模板
 */
if(!defined('EMLOG_ROOT')) {exit('error!');}
global $CACHE;
$sort_cache = $CACHE->readCache('sort');
?>
<link rel="stylesheet" href="<?php echo TEMPLATE_URL; ?>css/content.css">
<div class="bannar_div">
    <div class="am-container-1 wp">
        <div class="right toppic-progress">
            <span><a href="<?php echo BLOG_URL; ?>" class="w-white">首页</a></span>
            <i class=" am-icon-arrow-circle-right w-white"></i>
            <span><?php echo $sort_cache[intval($_GET['sort'])]['sortname']?></span>
        </div>
    </div>
</div>
<style type="text/css">
    .list_left{
        width:790px;
    }
    .list_right{
        width:380px;
    }
    /*资讯*/
    .footer_news_div{
        width:380px;height:200px;margin-right:30px;
    }
    .footer_news_div:last-child{
        margin:0px;
    }
    .footer_news_header{
        width:380px;height:35px;line-height:35px;border-left:#ff6600 solid 3px;background-color:#F7F7F7;text-align:left;
        text-indent: 10px;
    }
    .footer_news_header a{margin-right:10px;}
    .footer_news_ul{display:block;}
    .footer_news_ul li{
        display:block;width:380px;height:35px;line-height:35px;text-align: left;color:#999;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;
    }
</style>
<div class="wp" style="min-height:500px;">
    <div class="list_left fl">
        <ul class="am-list">
            <?php
            if (!empty($logs)):
                foreach($logs as $value):
                    ?>
                    <li style="position:relative">
                        <span class="am-badge" style="position:absolute;right:10px;top:13px;"><?php echo gmdate('Y-n-j', $value['date']); ?></span>
                        <?php topflg($value['top'], $value['sortop'], isset($sortid)?$sortid:''); ?><a href="<?php echo $value['log_url']; ?>"><?php echo $value['log_title']; ?></a></li>
                    <?php
                endforeach;
            else:
                ?>
                <h2>未找到</h2>
                <p>抱歉，没有符合您查询条件的结果。</p>
            <?php endif;?>
        </ul>
        <div id="pagenavi" class="am-pagination">
            <?php echo $page_url;?>
        </div>
    </div>
    <div class="list_right fr">
        <div class="footer_news_div fl">
            <div class="footer_news_header">
                <span>最新发布</span>
                <a href="#" target="_blank" class="fr">MORE+</a>
            </div>
            <ul class="footer_news_ul">
                <?php
                $newLogs_cache = $CACHE->readCache('newlog');
                foreach($newLogs_cache as $value):
                ?>
                <li>【<?php echo date('m-d',$value['date']);?>】<a href="<?php echo Url::log($value['gid']); ?>"><?php echo $value['title']; ?></a></li>
                <?php
                endforeach;
                ?>
            </ul>
        </div>
    </div>
</div>
<?php
 include View::getView('footer');
?>